<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta http-equiv="Access-Control-Allow-Origin" content="*" />
  <meta name="renderer" content="webkit">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  <script src="//res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
  <script src="https://open.work.weixin.qq.com/wwopen/js/jwxwork-1.0.0.js"></script>
  <title>乐返返</title>
  <style>
    #isGoogle{
      width: 100%;
      height: 100%;
      position: fixed;
      left: 0;
      top: 0;
      background: rgba(0, 0, 0, .8);
      text-align: center;
      font-size: 40px;
      color: #fff;
      padding-top: 20%;
      display: none;
      z-index: 9999;
    }
  </style>
</head>

<body>
<div id="isGoogle">推荐使用谷歌浏览器<br><button class="el-button login-button el-button--primary el-button--small" type="button" onclick="closeTips()">知道了</button></div>
  <div id="app"></div>
  <!-- built files will be auto injected -->
  <script type="text/javascript">
    function closeTips(){
      document.getElementById("isGoogle").style.display="none"
    }
    myBrowser()
      function myBrowser() {
        var userAgent = navigator.userAgent; //取得浏览器的userAgent字符串
        var isOpera = userAgent.indexOf("Opera") > -1;

        if (userAgent.indexOf("Chrome") > -1) {

        }else{
         // document.getElementById("isGoogle").style.display="block"
        }

    }
  </script>
</body>

</html>
